package io.noties.markwon.base.html.tag

import io.noties.markwon.base.MarkwonConfiguration
import io.noties.markwon.base.RenderProps
import io.noties.markwon.base.html.HtmlTag
import io.noties.markwon.base.html.span.SubScriptSpan

class SubScriptHandler : SimpleTagHandler() {
    override fun getSpans(
        configuration: MarkwonConfiguration,
        renderProps: RenderProps,
        tag: HtmlTag
    ): Any {
        return SubScriptSpan(configuration.theme)
    }

    override fun supportedTags(): List<String> {
        return listOf("sub")
    }
}